ScxV6Object.Find Method

Locates a database object that is a child of this object.

Parameters

Remarks

Returns an ScxV6Object, or nothing if the object cannot be found. The host object must be a group, template or template instance object.

Example:

The following example written in VB.NET shows the Find method being used find a point within a group, then write it's full name to the console:

' Connect to the server

Dim Svr As ScxV6DbClient.ScxV6Server

Svr = New ScxV6DbClient.ScxV6Server

Svr.Connect("MAIN", "", "")

' Find the point we wish to copy

Dim Obj As ScxV6DbClient.ScxV6Object

Obj = Svr.FindObject("Test Point")

' Find destination group

Dim Group As ScxV6DbClient.ScxV6Object

Group = Svr.RootObject.Find("Group")

If Group Is Nothing Then Return

Dim Point As ScxV6DbClient.ScxV6Object

Point = Group.Find("Test Point")

If Point Is Nothing Then Return

System.Console.WriteLine(Point.FullName)

' Disconnect

Svr.Disconnect()


Disclaimer

Geo SCADA Expert 2020